from django.urls import path
from .views import *

urlpatterns = [
    path('labels/', LabelListView.as_view()),
    path('labels/users/', UserLabelListView.as_view()),
    path('questions/<str:id>/label/new/', NewQuestionListView.as_view()),
    path('questions/<str:id>/label/hot/', HotQuestionListView.as_view()),
    path('questions/<str:id>/label/wait/', WaitQuestionListView.as_view()),
    path('questions/', ReleaseQuestionAPIView.as_view()),
    path('questions/<int:pk>/', QuestionInfoListView.as_view()),
    path('questions/<int:pk>/useful/', UsefulQuestioView.as_view()),
    path('questions/<int:pk>/unuseful/', UnUsefulQuestioView.as_view()),
    path('reply/', ReplyView.as_view()),
    path('reply/<int:pk>/useful/', AnswerUseful.as_view()),
    path('reply/<int:pk>/unuseful/', AnswerUnuseful.as_view()),
    path('labels/<int:pk>/', LabelInfo.as_view()),
    path('labels/<int:pk>/focusin/', FollowLabel.as_view({'put': 'update'})),
    path('labels/<int:pk>/focusout/', FollowLabel.as_view({'put': 'update'})),

]
